SPECS: linux-tools: Update to 7.0.10 and add new patch for const qualifier fix.#381
Merged
Merged
Conversation
Contributor
Author
|
Build log: [ 1597s] Supplements: (linux-tools = 7.0.10-1.1.or and langpacks-ka)
[ 1597s] Processing files: linux-tools-langpack-pt-7.0.10-1.1.or.noarch
[ 1597s] Provides: linux-tools-langpack-pt = 7.0.10-1.1.or
[ 1597s] Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
[ 1597s] Supplements: (linux-tools = 7.0.10-1.1.or and langpacks-pt)
[ 1597s] Processing files: linux-tools-langpack-zh-7.0.10-1.1.or.noarch
[ 1597s] Provides: linux-tools-langpack-zh = 7.0.10-1.1.or
[ 1597s] Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
[ 1597s] Supplements: (linux-tools = 7.0.10-1.1.or and langpacks-zh)
[ 1597s] Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/abuild/rpmbuild/BUILD/linux-tools-7.0.10-build/BUILDROOT
[ 1609s] Wrote: /home/abuild/rpmbuild/SRPMS/linux-tools-7.0.10-1.1.or.src.rpm
[ 1609s] Wrote: /home/abuild/rpmbuild/RPMS/riscv64/linux-tools-devel-7.0.10-1.1.or.riscv64.rpm
[ 1609s] Wrote: /home/abuild/rpmbuild/RPMS/noarch/linux-tools-langpack-ka-7.0.10-1.1.or.noarch.rpm
[ 1609s] Wrote: /home/abuild/rpmbuild/RPMS/noarch/linux-tools-langpack-zh-7.0.10-1.1.or.noarch.rpm
[ 1609s] Wrote: /home/abuild/rpmbuild/RPMS/noarch/linux-tools-langpack-de-7.0.10-1.1.or.noarch.rpm
[ 1609s] Wrote: /home/abuild/rpmbuild/RPMS/noarch/linux-tools-langpack-it-7.0.10-1.1.or.noarch.rpm
[ 1609s] Wrote: /home/abuild/rpmbuild/RPMS/noarch/linux-tools-langpack-pt-7.0.10-1.1.or.noarch.rpm
[ 1609s] Wrote: /home/abuild/rpmbuild/RPMS/noarch/linux-tools-langpack-fr-7.0.10-1.1.or.noarch.rpm
[ 1609s] Wrote: /home/abuild/rpmbuild/RPMS/noarch/linux-tools-langpack-cs-7.0.10-1.1.or.noarch.rpm
[ 1609s] Wrote: /home/abuild/rpmbuild/RPMS/riscv64/linux-tools-7.0.10-1.1.or.riscv64.rpm
[ 1613s] Wrote: /home/abuild/rpmbuild/RPMS/riscv64/perf-7.0.10-1.1.or.riscv64.rpm
[ 1613s] Executing(rmbuild): /usr/bin/bash -e /var/tmp/rpm-tmp.8vkhfY
[ 1613s] + umask 022
[ 1613s] + cd /home/abuild/rpmbuild/BUILD/linux-tools-7.0.10-build
[ 1613s] + test -d /home/abuild/rpmbuild/BUILD/linux-tools-7.0.10-build
[ 1613s] + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /home/abuild/rpmbuild/BUILD/linux-tools-7.0.10-build
[ 1615s] + rm -rf /home/abuild/rpmbuild/BUILD/linux-tools-7.0.10-build
[ 1622s] + RPM_EC=0
[ 1622s] ++ jobs -p
[ 1622s] + exit 0
[ 1622s] ... checking for files with abuild user/group
[ 1622s] Warning: mkbaselibs missing in build root, skipping baselibs
[ 1622s]
[ 1622s] obsworker-sg2044-0316-4 finished "build linux-tools.spec" at Sat May 23 19:29:44 UTC 2026. |
Contributor
|
You can try sending it upstream. |
….10. Signed-off-by: Li Guan <guanli.oerv@isrc.iscas.ac.cn>
RevySR
approved these changes
May 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The patch has been merged by the upstream team, but has not yet been released into the latest version, so the patch file is named 0001.
https://git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools-next.git/commit/?h=perf-tools-next&id=7378b6656aa46fda56f2743d5a7c1f619c2f6f9b
The assignment of strrchr() return values to non-const char * variables triggers a -Werror=discarded-qualifiers warning when building with GCC 14.
This happens because in newer glibc versions, strrchr() returns a const char * if the input string is const.
Properly declare 'line2' and 'nl' as const char * to match the glibc function signature and ensure type safety. This avoids the need for explicit type casting and aligns with the design pattern of not modifying read-only memory in the perf tool.